package org.wlw.dao.impl;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.wlw.dao.IUserDao;
import org.wlw.models.User;

import java.util.List;

//@Component
@Repository
public class UserDao implements IUserDao {
    @Override
    public void add(User user) {
        System.out.println("add:" + user);
    }

    @Override
    public void delete(int id) {
        System.out.println("delete:" + id);
    }

    @Override
    public void update(User user) {
        System.out.println("update:" + user);
    }

    @Override
    public User load(int id) {
        System.out.println("load:" + id);
        return null;
    }

    @Override
    public List<User> list() {
        return null;
    }
}
